package com.hgd.igreencar.dao;

import com.hgd.igreencar.entity.WebsiteUsers;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface WebsiteUsersMapper {
    WebsiteUsers getOne(WebsiteUsers users);//登录

    int save(WebsiteUsers users);//新增用户

    WebsiteUsers queryOne(int userId);//查询单个用户

//    List<WebsiteUsers> queryUserAll(String jurisdictionName, Integer pageNum);//查询所有用户
    List<WebsiteUsers> queryUserAll(String jurisdictionName, int currentPage, int pageSize);

    int delete(int userId);//删除用户

    int editUser(WebsiteUsers users);//编辑用户
}
